[%WRAPPER Interface/Page.htm
  title = "Add a Resource",
  redirect = "${system.SCRIPT_URL}?action=Detail&RID=${record.ID}"%]
      <table border="0" cellpadding="5" cellspacing="2" width="100%">
        <tr>
          <td><font class="location"><a href="[%system.SCRIPT_URL%]">Index</a> /</font></td>
        </tr>
      </table>
      <table border="0" cellpadding="1" cellspacing="1" width="100%" class="main-border">
        <tr class="main-background">
          <td>
            <table border="0" cellpadding="1" cellspacing="0" width="100%">
              <tr>
                <td>
                  <table border="0" cellspacing="1" cellpadding="3" width="100%" class="row-border">
                    <tr class="header">
                      <td>
                        <table border="0" cellspacing="0" cellpadding="1" width="100%">
                          <tr>
                            <td width="2" nowrap></td>
                            <td width="100%"><font class="header">Add a Resource</font></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>
                  <table border="0" cellspacing="1" cellpadding="3" width="100%" class="row-border">
                    <tr class="body">
                      <td>
                        <table border="0" cellspacing="1" cellpadding="0" width="100%" class="table-border">
                          <tr>
                            <td>
                              <table border="0" cellspacing="1" cellpadding="6" width="100%" class="table">
                                <tr class="table-row">
                                  <td width="100%" colspan="2"><font class="table-row">Thank you! The following resource has been added:</font></td>
                                </tr>
                                <tr class="table-row">
                                  <td width="200" valign="top" nowrap><font class="form-subject">Title</font></td>
                                  <td width="100%"><font class="form-field">[%record.TITLE%]</font></td>
                                </tr>
                                <tr class="table-row">
                                  <td width="200" valign="top" nowrap><font class="form-subject">URL</font></td>
                                  <td width="100%"><font class="form-field">[%record.URL%]</font></td>
                                </tr>
                                <tr class="table-row">
                                  <td width="200" valign="top" nowrap><font class="form-subject">Category</font></td>
                                  <td width="100%"><font class="form-field">[%category.FULL_TITLE%]</font></td>
                                </tr>
                                <tr class="table-row">
                                  <td width="200" valign="top" nowrap><font class="form-subject">Description</font></td>
                                  <td width="100%"><font class="form-field">[%record.DESCRIPTION%]</font></td>
                                </tr>
                                <tr class="table-row">
                                  <td width="200" valign="top" nowrap><font class="form-subject">Keywords</font></td>
                                  <td width="100%"><font class="form-field">[%record.KEYWORDS%]</font></td>
                                </tr>
                              [%IF general.IMAGE_UPLOAD || general.IMAGE_URL%]
                                <tr class="table-row">
                                  <td width="200" valign="top" nowrap><font class="form-subject">Image</font></td>
                                  <td width="100%"><font class="form-field">[%record.IMAGE%][%IF record.UPLOAD_FILENAME%] (Uploaded)[%END%]</font></td>
                                </tr>
                              [%END%]
                                <tr class="table-row">
                                  <td width="200" valign="top" nowrap><font class="form-subject">Contact Name</font></td>
                                  <td width="100%"><font class="form-field">[%record.CONTACT_NAME%]</font></td>
                                </tr>
                                <tr class="table-row">
                                  <td width="200" valign="top" nowrap><font class="form-subject">Contact Email</font></td>
                                  <td width="100%"><font class="form-field">[%record.CONTACT_EMAIL%]</font></td>
                                </tr>
                            [%SET publicextra = []%]
                            [%FOREACH field = general.RESOURCE_EXTRA%]
                              [%IF field.PUBLIC%][%publicextra.push(field)%][%END%]
                            [%END%]
                            [%IF publicextra.size >= 1%]
                                <tr class="table-header">
                                  <td colspan="2"><font class="table-header">Extra</font></td>
                                </tr>
                              [%FOREACH field = publicextra%]
                                <tr class="table-row">
                                  <td width="200" valign="top" nowrap><font class="form-subject">[%field.DESCRIPTION%]</font></td>
                                [%IF field.CUSTOM_DONE%]
                                  <td width="100%"><font class="form-label">[%field.CUSTOM_DONE | eval%]</font></td>
                                [%ELSE%]
                                  <td width="100%"><font class="form-field">[%record.extra.${field.ID}%]</td>
                                [%END%]
                                </tr>
                              [%END%]
                            [%END%]
                                <tr class="table-row">
                                  <td colspan="2">
                                    <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                      <tr><td height="2" class="table-divider1"></td></tr>
                                      <tr><td height="1" class="table-divider2"></td></tr>
                                    </table>
                                  </td>
                                </tr>
                                <tr class="table-row">
                                  <td width="100%" colspan="2"><font class="table-row">If you want to edit your resource in the future then you'll need the following information:</font></td>
                                </tr>
                                <tr class="table-row">
                                  <td width="200" valign="top" nowrap><font class="form-subject">Resource ID</font></td>
                                  <td width="100%"><font class="form-field">[%record.ID%]</font></td>
                                </tr>
                                <tr class="table-row">
                                  <td width="200" valign="top" nowrap><font class="form-subject">Password</font></td>
                                  <td width="100%"><font class="form-field">[%record.PASSWORD%]</font></td>
                                </tr>
                              [%IF general.NOTIFY_USER_OF_ADD%]
                                <tr class="table-row">
                                  <td width="100%" colspan="2"><font class="table-row">This information will also be sent in an email to the Contact Email address specified.</font></td>
                                </tr>
                              [%END%]
                                <tr class="table-row">
                                  <td colspan="2">
                                    <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                      <tr><td height="2" class="table-divider1"></td></tr>
                                      <tr><td height="1" class="table-divider2"></td></tr>
                                    </table>
                                  </td>
                                </tr>
                                <tr class="table-row">
                                  <td width="100%" colspan="2"><font class="table-row">
                                    <a href="[%system.SCRIPT_URL%]?action=Detail&RID=[%record.ID%]">Your new listing</a> (you should be redirected here in 5 seconds)<br>
                                    <a href="[%system.SCRIPT_URL%]?action=Category&CID=[%record.CATEGORY%]">Category index</a><br>
                                    <a href="[%system.SCRIPT_URL%]">Main index</a></font></td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>
                  <table border="0" cellspacing="1" cellpadding="3" width="100%" class="row-border">
                    <tr class="bottombar">
                      <td><font class="bottombar"></font></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
[%END%]